-- GENERATED SPELL FOR [Sorrow Spinner] --


function spell0_858(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_858', 30000, 1)
end

function spell1_858(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(745,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_858', 5271, 1)
end

function Sorts_858(pUnit, Event)
local choix_sorts_858 = math.random(0, 1)
if choix_sorts_858 == 0 then
pUnit:RegisterEvent('spell0_858', 1, 1)
end
if choix_sorts_858 == 1 then
pUnit:RegisterEvent('spell1_858', 1, 1)
end
end

function mob858_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_858', math.random(1500, 3000), 1)
end

function mob858_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob858_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob858_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(858, 1, 'mob858_Action')
RegisterUnitEvent(858, 2, 'mob858_Leave')
RegisterUnitEvent(858, 3, 'mob858_Kill')
RegisterUnitEvent(858, 4, 'mob858_Die')
